package com.examsystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.Id;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.io.Serializable;
import java.util.Date;


/**
 * @author Administrator
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("paper")
public class Paper implements Serializable {
    private static final long serialVersionUID = -1;

//    @Id
//    @TableId(value = "paper_id",type = IdType.AUTO)
//    @GeneratedValue(strategy = GenerationType.IDENTITY)

    @Id
    @GenericGenerator(name = "id-generator",strategy = "increment")
    @GeneratedValue(generator = "id-generator")
    private int paperId;

    private int paperTeacher;
    private String dateTime;
    private String paperName;
    private String paperSubject;
    private int paperStatus;

}
